import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';
import 'package:myflutterproject/utils/overScrollBehavior.dart';

class SizeBoxDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('SizeBox'),
        centerTitle: true,
      ),
      body: Container(
        color: Colors.blue,
        /*ListView嵌套SizedBox时候，SizedBox的width不起作用*/
        child: SizedBox(
          width: 50,
          height: 50,
          child: Text(
              'HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHello'),
        ),
      ),
      // TextWidget('expand()创建一个尽可能大的盒子:'),
    );
  }
}
